package com.yequan.designpattern.factory.mulfactory;

import com.yequan.designpattern.factory.IProduct1;
import com.yequan.designpattern.factory.Product1A;
import com.yequan.designpattern.factory.Product1B;
import com.yequan.designpattern.factory.Product1C;

public class MulProductFactory {

    /**
     * 模仿java.utils.concurrent.Executors类
     * 这种方式是常用的工厂模式
     * @return
     */
    public static IProduct1 createProductA(){
        return new Product1A();
    }

    public static IProduct1 createProductB(){
        return new Product1B();
    }

    public static IProduct1 createProductC(){
        return new Product1C();
    }

}
